import java.util.Scanner;

public class Day_20_1_字符串反转 {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        while(scan.hasNext()) {
            String str = scan.nextLine();
            char[] temp = str.toCharArray();
            char[] result = new char[temp.length];
            int j = 0;
            for(int i = temp.length-1; i >= 0; i--) {
                result[j] = temp[i];
                j++;
            }
            for(int k = 0;k < result.length;k++) {
                System.out.print(result[k]);
            }
        }
    }
}
